package com.lingxu.api.ztb.mapper;

import com.lingxu.api.ztb.model.ProjectProposal;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingxu.api.ztb.model.vo.ProjectProposalVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;


import java.util.List;

/**
 *  项目建议书环节表  Mapper接口
 *
 * @author admin
 * @since 2025-08-13
 */
@Mapper
public interface ProjectProposalMapper extends BaseMapper<ProjectProposal> {
    /**
     * 查询 项目建议书环节表
     *
     * @return
     */
    List<ProjectProposalVO> selectProjectProposalList(@Param("query") ProjectProposalVO vo);

    IPage<ProjectProposalVO> pageList(@Param("page") Page<ProjectProposalVO> page, @Param("query") ProjectProposalVO vo);

    List<ProjectProposalVO> getDataForExport(@Param("query") ProjectProposalVO vo);

    void createTempTable(@Param("batchFlag")String batchFlag);
    void insertTempTable(@Param("list") List<ProjectProposalVO> dataList, @Param("batchFlag")String batchFlag);
    void insertTable(@Param("batchFlag")String batchFlag);
    void dropTempTable(@Param("batchFlag")String batchFlag);

    ProjectProposalVO projectProposalList(@Param("query") ProjectProposalVO query);
}
